import { memo, FC, ReactNode } from "react";
import style from "@/style/top/index.module.less";
import useEditStore from '../../store/commonStore';
interface IProps {
  children?: ReactNode;
}
const App: FC<IProps> = memo(() => {
  const clearView = useEditStore(state => state.claearView);
  const clear =() => {
    clearView()
  }
  return <div className={style.cont}>
    <div>
      <ul>
        <li onClick={()=>{clear()}}>
          清空画布
        </li>
      </ul>
    </div>
  </div>;
});

export default App;
